<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>SB Admin</title>
    <!-- Bootstrap core CSS-->
    <link th:href="@{/vendor/bootstrap/css/bootstrap.min.css}" rel="stylesheet">
    <!-- Custom fonts for this template-->
    <link th:href="@{/vendor/font-awesome/css/font-awesome.min.css}" rel="stylesheet" type="text/css">
    <!-- Custom styles for this template-->
    <link th:href="@{/css/sb-admin.css}" rel="stylesheet">
</head>

<body class="bg-dark">
<div class="container" >
    <div class="card card-login mx-auto mt-5" >
        <div class="card-header" th:text="#{login.tip}" >Login</div>
       <!-- <h1 style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></h1>-->
        <div class="card-body">
            <form th:action="@{/user/login}">
                <div class="form-group" th:href="@{/user/login}">
                    <label for="exampleInputEmail1" th:text="#{login.email}">Email address</label>
                    <h6 style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></h6>
                    <input class="form-control" id="exampleInputEmail1" type="email" name="email" aria-describedby="emailHelp"
                           th:placeholder="#{login.email}" required="required" autofocus="autofocus">
                </div>
                <div class="form-group">
                    <label for="exampleInputPassword1" th:text="#{login.password}">Password</label>
                    <input class="form-control" id="exampleInputPassword1" type="password" name="password"
                           th:placeholder="#{login.password}" required="required" >
                </div>
                <div class="form-group">
                <div class="form-check">
                    <label class="form-check-label">
                        <input class="form-check-input" type="checkbox" value="Remember Password">[[#{login.remember}]]</label>
                </div>
            </div >
                <!--<a class="btn btn-primary btn-block" th:text="#{login.btn}">Login</a>-->
                <button class="btn btn-primary btn-block" type="submit" th:text="#{login.btn}"></button>
                <p class="mt-2 mb-3 text-muted">©2020-2021-chenchao</p>
                <a class="mt-0 mb-1 btn btn-sm" th:href="@{/login.html(l='zh_CN')}">中文</a>
                <a class="mt-0 mb-1 btn btn-sm" th:href="@{/login.html(l='en_US')}">Enlish</a>
            </form>
            <!--<div class="text-center">
              <a class="d-block small mt-3" th:href="@{/register.html}">Register an Account</a>
              <a class="d-block small" th:href="@{/forgot-password.html}">Forgot Password?</a>
            </div>-->
        </div>
    </div>
</div>
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
</body>

</html>
<!--
href="index.html"-->
